<template>
  <el-drawer
    title="我是标题"
    :visible.sync="visible"
    direction="btt"
    :show-close="false"
  >
    <span>我来啦!</span>
  </el-drawer>
</template>

<script>
export default {
  name: "EntrustConfirmDrawer",
  data: () => {
    return {
      visible: false,
      entrust: null,
      yes: null,
    };
  },
  methods: {
    confirm(enturst, yes = () => {}) {
      if (enturst != null) {
        this.setVisible(true);
        this.yes = yes;
      }
    },
    setVisible(visible) {
      this.visible = visible;
    },
  },
};
</script>

<style></style>
